 if goal == small + big * 5:
    return small
  if goal > small + big * 5:
    return -1
  else:
    return goal % (big * 5)
  if goal - (goal // 5) * 5 <= small:
    return goal - (goall // 5) * 5
  else:
    return small